(function($){ 'use strict'; if(typeof wpcf7==='undefined'||wpcf7===null){ return; } wpcf7=$.extend({ cached: 0, inputs: [] }, wpcf7); $(function(){ wpcf7.supportHtml5=(function(){ var features={}; var input=document.createElement('input'); features.placeholder='placeholder' in input; var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ]; $.each(inputTypes, function(index, value){ input.setAttribute('type', value); features[ value ]=input.type!=='text'; }); return features; })(); $('div.wpcf7 > form').each(function(){ var $form=$(this); wpcf7.initForm($form); if(wpcf7.cached){ wpcf7.refill($form); }}); }); wpcf7.getId=function(form){ return parseInt($('input[name="_wpcf7"]', form).val(), 10); }; wpcf7.initForm=function(form){ var $form=$(form); $form.submit(function(event){ if(! wpcf7.supportHtml5.placeholder){ $('[placeholder].placeheld', $form).each(function(i, n){ $(n).val('').removeClass('placeheld'); }); } if(typeof window.FormData==='function'){ wpcf7.submit($form); event.preventDefault(); }}); $('.wpcf7-submit', $form).after(''); wpcf7.toggleSubmit($form); $form.on('click', '.wpcf7-acceptance', function(){ wpcf7.toggleSubmit($form); }); $('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){ var name=$(this).attr('name'); $form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false); }); $('.wpcf7-list-item.has-free-text', $form).each(function(){ var $freetext=$(':input.wpcf7-free-text', this); var $wrap=$(this).closest('.wpcf7-form-control'); if($(':checkbox, :radio', this).is(':checked')){ $freetext.prop('disabled', false); }else{ $freetext.prop('disabled', true); } $wrap.on('change', ':checkbox, :radio', function(){ var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio'); if($cb.is(':checked')){ $freetext.prop('disabled', false).focus(); }else{ $freetext.prop('disabled', true); }}); }); if(! wpcf7.supportHtml5.placeholder){ $('[placeholder]', $form).each(function(){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); $(this).focus(function(){ if($(this).hasClass('placeheld')){ $(this).val('').removeClass('placeheld'); }}); $(this).blur(function(){ if(''===$(this).val()){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); }}); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){ $form.find('input.wpcf7-date[type="date"]').each(function(){ $(this).datepicker({ dateFormat: 'yy-mm-dd', minDate: new Date($(this).attr('min')), maxDate: new Date($(this).attr('max')) }); }); } if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){ $form.find('input.wpcf7-number[type="number"]').each(function(){ $(this).spinner({ min: $(this).attr('min'), max: $(this).attr('max'), step: $(this).attr('step') }); }); } $('.wpcf7-character-count', $form).each(function(){ var $count=$(this); var name=$count.attr('data-target-name'); var down=$count.hasClass('down'); var starting=parseInt($count.attr('data-starting-value'), 10); var maximum=parseInt($count.attr('data-maximum-value'), 10); var minimum=parseInt($count.attr('data-minimum-value'), 10); var updateCount=function(target){ var $target=$(target); var length=$target.val().length; var count=down ? starting - length:length; $count.attr('data-current-value', count); $count.text(count); if(maximum&&maximum < length){ $count.addClass('too-long'); }else{ $count.removeClass('too-long'); } if(minimum&&length < minimum){ $count.addClass('too-short'); }else{ $count.removeClass('too-short'); }}; $(':input[name="' + name + '"]', $form).each(function(){ updateCount(this); $(this).keyup(function(){ updateCount(this); }); }); }); $form.on('change', '.wpcf7-validates-as-url', function(){ var val=$.trim($(this).val()); if(val && ! val.match(/^[a-z][a-z0-9.+-]*:/i) && -1!==val.indexOf('.')){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); }; wpcf7.submit=function(form){ if(typeof window.FormData!=='function'){ return; } var $form=$(form); $('.ajax-loader', $form).addClass('is-active'); wpcf7.clearResponse($form); var formData=new FormData($form.get(0)); var detail={ id: $form.closest('div.wpcf7').attr('id'), status: 'init', inputs: [], formData: formData }; $.each($form.serializeArray(), function(i, field){ if('_wpcf7'==field.name){ detail.contactFormId=field.value; }else if('_wpcf7_version'==field.name){ detail.pluginVersion=field.value; }else if('_wpcf7_locale'==field.name){ detail.contactFormLocale=field.value; }else if('_wpcf7_unit_tag'==field.name){ detail.unitTag=field.value; }else if('_wpcf7_container_post'==field.name){ detail.containerPostId=field.value; }else if(field.name.match(/^_wpcf7_\w+_free_text_/)){ var owner=field.name.replace(/^_wpcf7_\w+_free_text_/, ''); detail.inputs.push({ name: owner + '-free-text', value: field.value }); }else if(field.name.match(/^_/)){ }else{ detail.inputs.push(field); }}); wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail); var ajaxSuccess=function(data, status, xhr, $form){ detail.id=$(data.into).attr('id'); detail.status=data.status; detail.apiResponse=data; var $message=$('.wpcf7-response-output', $form); switch(data.status){ case 'validation_failed': $.each(data.invalidFields, function(i, n){ $(n.into, $form).each(function(){ wpcf7.notValidTip(this, n.message); $('.wpcf7-form-control', this).addClass('wpcf7-not-valid'); $('[aria-invalid]', this).attr('aria-invalid', 'true'); }); }); $message.addClass('wpcf7-validation-errors'); $form.addClass('invalid'); wpcf7.triggerEvent(data.into, 'invalid', detail); break; case 'acceptance_missing': $message.addClass('wpcf7-acceptance-missing'); $form.addClass('unaccepted'); wpcf7.triggerEvent(data.into, 'unaccepted', detail); break; case 'spam': $message.addClass('wpcf7-spam-blocked'); $form.addClass('spam'); wpcf7.triggerEvent(data.into, 'spam', detail); break; case 'aborted': $message.addClass('wpcf7-aborted'); $form.addClass('aborted'); wpcf7.triggerEvent(data.into, 'aborted', detail); break; case 'mail_sent': $message.addClass('wpcf7-mail-sent-ok'); $form.addClass('sent'); wpcf7.triggerEvent(data.into, 'mailsent', detail); break; case 'mail_failed': $message.addClass('wpcf7-mail-sent-ng'); $form.addClass('failed'); wpcf7.triggerEvent(data.into, 'mailfailed', detail); break; default: var customStatusClass='custom-' + data.status.replace(/[^0-9a-z]+/i, '-'); $message.addClass('wpcf7-' + customStatusClass); $form.addClass(customStatusClass); } wpcf7.refill($form, data); wpcf7.triggerEvent(data.into, 'submit', detail); if('mail_sent'==data.status){ $form.each(function(){ this.reset(); }); wpcf7.toggleSubmit($form); } if(! wpcf7.supportHtml5.placeholder){ $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); } $message.html('').append(data.message).slideDown('fast'); $message.attr('role', 'alert'); $('.screen-reader-response', $form.closest('.wpcf7')).each(function(){ var $response=$(this); $response.html('').attr('role', '').append(data.message); if(data.invalidFields){ var $invalids=$(''); $.each(data.invalidFields, function(i, n){ if(n.idref){ var $li=$('
  • ').append($('').attr('href', '#' + n.idref).append(n.message)); }else{ var $li=$('
  • ').append(n.message); } $invalids.append($li); }); $response.append($invalids); } $response.attr('role', 'alert').focus(); }); }; $.ajax({ type: 'POST', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'), data: formData, dataType: 'json', processData: false, contentType: false }).done(function(data, status, xhr){ ajaxSuccess(data, status, xhr, $form); $('.ajax-loader', $form).removeClass('is-active'); }).fail(function(xhr, status, error){ var $e=$('
    ').text(error.message); $form.after($e); }); }; wpcf7.triggerEvent=function(target, name, detail){ var $target=$(target); var event=new CustomEvent('wpcf7' + name, { bubbles: true, detail: detail }); $target.get(0).dispatchEvent(event); $target.trigger('wpcf7:' + name, detail); $target.trigger(name + '.wpcf7', detail); }; wpcf7.toggleSubmit=function(form, state){ var $form=$(form); var $submit=$('input:submit', $form); if(typeof state!=='undefined'){ $submit.prop('disabled', ! state); return; } if($form.hasClass('wpcf7-acceptance-as-validation')){ return; } $submit.prop('disabled', false); $('.wpcf7-acceptance', $form).each(function(){ var $span=$(this); var $input=$('input:checkbox', $span); if(! $span.hasClass('optional')){ if($span.hasClass('invert')&&$input.is(':checked') || ! $span.hasClass('invert')&&! $input.is(':checked')){ $submit.prop('disabled', true); return false; }} }); }; wpcf7.notValidTip=function(target, message){ var $target=$(target); $('.wpcf7-not-valid-tip', $target).remove(); $('') .text(message).appendTo($target); if($target.is('.use-floating-validation-tip *')){ var fadeOut=function(target){ $(target).not(':hidden').animate({ opacity: 0 }, 'fast', function(){ $(this).css({ 'z-index': -100 }); }); }; $target.on('mouseover', '.wpcf7-not-valid-tip', function(){ fadeOut(this); }); $target.on('focus', ':input', function(){ fadeOut($('.wpcf7-not-valid-tip', $target)); }); }}; wpcf7.refill=function(form, data){ var $form=$(form); var refillCaptcha=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find('img.wpcf7-captcha-' + i).attr('src', n); var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n); $form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]); }); }; var refillQuiz=function($form, items){ $.each(items, function(i, n){ $form.find(':input[name="' + i + '"]').val(''); $form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]); $form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]); }); }; if(typeof data==='undefined'){ $.ajax({ type: 'GET', url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'), beforeSend: function(xhr){ var nonce=$form.find(':input[name="_wpnonce"]').val(); if(nonce){ xhr.setRequestHeader('X-WP-Nonce', nonce); }}, dataType: 'json' }).done(function(data, status, xhr){ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }}); }else{ if(data.captcha){ refillCaptcha($form, data.captcha); } if(data.quiz){ refillQuiz($form, data.quiz); }} }; wpcf7.clearResponse=function(form){ var $form=$(form); $form.removeClass('invalid spam sent failed'); $form.siblings('.screen-reader-response').html('').attr('role', ''); $('.wpcf7-not-valid-tip', $form).remove(); $('[aria-invalid]', $form).attr('aria-invalid', 'false'); $('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid'); $('.wpcf7-response-output', $form) .hide().empty().removeAttr('role') .removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked'); }; wpcf7.apiSettings.getRoute=function(path){ var url=wpcf7.apiSettings.root; url=url.replace(wpcf7.apiSettings.namespace, wpcf7.apiSettings.namespace + path); return url; };})(jQuery); (function (){ if(typeof window.CustomEvent==="function") return false; function CustomEvent(event, params){ params=params||{ bubbles: false, cancelable: false, detail: undefined }; var evt=document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype=window.Event.prototype; window.CustomEvent=CustomEvent; })(); !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.2", x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}), x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}), x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)}, x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()), x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}), x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}, x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o
    ")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0o?0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o=0){ os='Windows Phone' }else if(userAgent.indexOf('windows') >=0||userAgent.indexOf('win16') >=0||userAgent.indexOf('win32') >=0||userAgent.indexOf('win64') >=0||userAgent.indexOf('win95') >=0||userAgent.indexOf('win98') >=0||userAgent.indexOf('winnt') >=0||userAgent.indexOf('wow64') >=0){ os='Windows' }else if(userAgent.indexOf('android') >=0){ os='Android' }else if(userAgent.indexOf('linux') >=0||userAgent.indexOf('cros') >=0||userAgent.indexOf('x11') >=0){ os='Linux' }else if(userAgent.indexOf('iphone') >=0||userAgent.indexOf('ipad') >=0||userAgent.indexOf('ipod') >=0||userAgent.indexOf('crios') >=0||userAgent.indexOf('fxios') >=0){ os='iOS' }else if(userAgent.indexOf('macintosh') >=0||userAgent.indexOf('mac_powerpc)') >=0){ os='Mac' }else{ os='Other' } try { if(window.Intl&&window.Intl.DateTimeFormat){ var x=new window.Intl.DateTimeFormat().resolvedOptions().timeZone; }else{ var x='undef'; }} catch (err){ var x='error'; } try { var d=new Date(); var t=d.getTimezoneOffset(); } catch (err){ var t='error'; } var loseWebglContext=function (context){ var loseContextExtension=context.getExtension('WEBGL_lose_context') if(loseContextExtension!=null){ loseContextExtension.loseContext() }} var getWebglVendorAndRenderer=function (){ try { var glContext=getWebglCanvas() var extensionDebugRendererInfo=glContext.getExtension('WEBGL_debug_renderer_info') var params=glContext.getParameter(extensionDebugRendererInfo.UNMASKED_VENDOR_WEBGL) + '~' + glContext.getParameter(extensionDebugRendererInfo.UNMASKED_RENDERER_WEBGL) loseWebglContext(glContext) return params; } catch (e){ return null; }} var getWebglCanvas=function (){ var canvas=document.createElement('canvas') var gl=null try { gl=canvas.getContext('webgl')||canvas.getContext('experimental-webgl') } catch (e){ } if(!gl){ gl=null } return gl } var webglVendorAndRendererKey='?'; var elem=document.createElement('canvas') try { var w=(!!(elem.getContext&&elem.getContext('2d'))); webglVendorAndRendererKey=getWebglVendorAndRenderer(); } catch (err){ webglVendorAndRendererKey='Undef'; } x=jQuery.trim(x); t=jQuery.trim(t); p=jQuery.trim(platform); o=jQuery.trim(os); ts=jQuery.trim(touchSupportKey); v=webglVendorAndRendererKey; var $fingerprint=''; if(x.lenght!=0){ $fingerprint=$fingerprint + '#' + x; } if(t.lenght!=0){ $fingerprint=$fingerprint + '#' + t; } if(p.lenght!=0){ $fingerprint=$fingerprint + '#' + p; } if(o.lenght!=0){ $fingerprint=$fingerprint + '#' + o; } if(ts.lenght!=0){ $fingerprint=$fingerprint + '#' + ts; } if(v!==null){ if(v.lenght!=0){ $fingerprint=$fingerprint + '#' + v; }} jQuery.ajax({ url: ajaxurl, data: { 'action':'stopbadbots_grava_fingerprint', 'fingerprint': $fingerprint }, success: function (data){ }, error: function (errorThrown){ console.log(errorThrown); }}); eraseCookie('antihacker_cookie'); if(readCookie('antihacker_cookie')==null){ createCookie('antihacker_cookie', $fingerprint); } return; function createCookie(name, value, days){ var expires; if(days){ var date=new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); expires="; expires=" + date.toGMTString(); }else{ expires=""; } document.cookie=escape(name) + "=" + escape(value) + expires + "; path=/"; } function readCookie(name){ var nameEQ=escape(name) + "="; var ca=document.cookie.split(';'); for (var i=0; i < ca.length; i++){ var c=ca[i]; while (c.charAt(0)===' ') c=c.substring(1, c.length); if(c.indexOf(nameEQ)===0) return unescape(c.substring(nameEQ.length, c.length)); } return null; } function eraseCookie(name){ createCookie(name, "", -1); }}); !function(e){if(!e.hasInitialised){var t={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(e,t){var i=" ",o=e.className;return"object"==typeof o&&(o=e.className.baseVal||""),1===e.nodeType&&(i+o+i).replace(/[\n\t]/g,i).indexOf(i+t+i)>=0},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){var i=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(i,"")},interpolateString:function(e,t){return e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(e){return t(arguments[1])||""})},getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return t.length<2?void 0:t.pop().split(";").shift()},setCookie:function(e,t,i,o,s,n){var c=new Date;c.setHours(c.getHours()+24*(i||365));var a=[e+"="+t,"expires="+c.toUTCString(),"samesite=lax;path="+(s||"/")];o&&a.push("domain="+o),n&&a.push("secure"),document.cookie=a.join(";")},deepExtend:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(i in e&&this.isPlainObject(e[i])&&this.isPlainObject(t[i])?this.deepExtend(e[i],t[i]):e[i]=t[i]);return e},throttle:function(e,t){var i=!1;return function(){i||(e.apply(this,arguments),i=!0,setTimeout(function(){i=!1},t))}},hash:function(e){var t,i,o=0;if(0===e.length)return o;for(t=0,i=e.length;t=128?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),i=38+(t>>16),o=38+(t>>8&255),s=38+(255&t);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(o<255?o<1?0:o:255)+(s<255?s<1?0:s:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object},traverseDOMPath:function(e,i){return e&&e.parentNode?t.hasClass(e,i)?e:this.traverseDOMPath(e.parentNode,i):null}};e.status={deny:"deny",allow:"allow",dismiss:"dismiss",allowall:"allowall",savesettings:"savesettings",detailed:"detailed",close:"close",discard:"discard"},e.transitionEnd=function(){var e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in t)if(t.hasOwnProperty(i)&&void 0!==e.style[i+"ransition"])return t[i];return""}(),e.hasTransition=!!e.transitionEnd;var i=Object.keys(e.status).map(t.escapeRegExp);e.customStyles={},e.Popup=function(){var o={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(e){},onStatusChange:function(e,t){},onRevokeChoice:function(){},onNoCookieLaw:function(e,t){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",savesettings:"Save Settings",link:"Learn more",href:"https://www.cookiescanner.com",close:"x",target:"_blank",policy:"Cookie Policy"},elements:{header:'{{header}} ',message:'{{message}}',messagelink:'{{message}} {{link}}',messageswitchlink:'{{message}} {{link}}
    {{allswitches}}
    ',dismiss:'{{dismiss}}',allow:'{{allow}}',deny:'{{deny}}',savesettings:'{{savesettings}}',allowall:'{{allow}}',link:'{{link}}',close:'{{close}}',closeCustomText:'{{close}}',switch:'{{label}}'},window:'',revokeBtnText:'
    {{policy}}
    ',revokeBtnIcon:'
    {{policy}}
    ',revokeBtnType:"textOnly",revokeBtnIconDValue:"M14.5 10C13.67 10 13 9.33 13 8.5V8H12.5C11.67 8 11 7.33 11 6.5V5.07C7.91 5.5 5.47 8 5.07 11.08C5.25 10.46 5.82 10 6.5 10C7.33 10 8 10.67 8 11.5S7.33 13 6.5 13C5.71 13 5.07 12.39 5 11.62C5 12.11 5 12.61 5.09 13.12C5.5 15.81 7.54 18.04 10.16 18.74C9.76 18.47 9.5 18 9.5 17.5C9.5 16.67 10.17 16 11 16C11.59 16 12.1 16.35 12.34 16.84C12.16 17.39 12.06 17.97 12 18.57C11.83 18.76 11.6 18.9 11.32 18.96C11.55 19 11.78 19 12 19V19C12 19.69 12.11 20.36 12.29 21C12.19 21 12.1 21 12 21C7.03 21 3 16.97 3 12S7.03 3 12 3C12 3 13 3 13 4V6H14C14 6 15 6 15 7V8H17C17 8 18 8 18 9V10H20C20 10 20.6 10 20.87 10.5C20.96 11 21 11.5 21 12C21 12.1 21 12.19 21 12.29C20.36 12.11 19.69 12 19 12H17.5C16.67 12 16 11.33 16 10.5V10H14.5M11.5 11C10.67 11 10 11.67 10 12.5S10.67 14 11.5 14 13 13.33 13 12.5 12.33 11 11.5 11M11 7.5C11 6.67 10.33 6 9.5 6S8 6.67 8 7.5 8.67 9 9.5 9 11 8.33 11 7.5M23.8 20.4C23.9 20.4 23.9 20.5 23.8 20.6L22.8 22.3C22.7 22.4 22.6 22.4 22.5 22.4L21.3 22C21 22.2 20.8 22.3 20.5 22.5L20.3 23.8C20.3 23.9 20.2 24 20.1 24H18.1C18 24 17.9 23.9 17.8 23.8L17.6 22.5C17.3 22.4 17 22.2 16.8 22L15.6 22.5C15.5 22.5 15.4 22.5 15.3 22.4L14.3 20.7C14.2 20.6 14.3 20.5 14.4 20.4L15.5 19.6V18.6L14.4 17.8C14.3 17.7 14.3 17.6 14.3 17.5L15.3 15.8C15.4 15.7 15.5 15.7 15.6 15.7L16.8 16.2C17.1 16 17.3 15.9 17.6 15.7L17.8 14.4C17.8 14.3 17.9 14.2 18.1 14.2H20.1C20.2 14.2 20.3 14.3 20.3 14.4L20.5 15.7C20.8 15.8 21.1 16 21.4 16.2L22.6 15.7C22.7 15.7 22.9 15.7 22.9 15.8L23.9 17.5C24 17.6 23.9 17.7 23.8 17.8L22.7 18.6V19.6L23.8 20.4M20.5 19C20.5 18.2 19.8 17.5 19 17.5S17.5 18.2 17.5 19 18.2 20.5 19 20.5 20.5 19.8 20.5 19Z",revokeBtnIconColor:"#009868",revokeBtnIconHeight:"2em",blockingScreen:'
    ',blockScreen:!1,makeButtonsEqual:!1,buttonOrderAllowFirst:!1,activateConsentMode:!1,consentModeConfig:{},compliance:{info:'
    {{dismiss}}
    ',"opt-in":'
    {{deny}}{{allow}}
    ',"opt-out":'
    {{deny}}{{allow}}
    ',detailed:'
    {{savesettings}}
    ',detailedRev:'
    {{savesettings}}{{allowall}}
    ',detailedRevDeny:'
    {{deny}}{{savesettings}}{{allowall}}
    '},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-closeCustomText":"{{messagelink}}{{compliance}}{{closeCustomText}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}",detailed:"{{messageswitchlink}}{{compliance}}","detailed-close":"{{messageswitchlink}}{{compliance}}{{close}}","detailed-closeCustomText":"{{messageswitchlink}}{{compliance}}{{closeCustomText}}"},cookietypes:null,statsUrl:null,statsSendOnOpen:!1,statsCountOpens:!1,layout:"basic",position:"bottom",positionRevokeButton:"bottom-right",centerBanner:!1,theme:"block",static:!1,palette:null,revokable:!0,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,forceToAppend:!0,whitelistPage:[],blacklistPage:[],disableWithiniFrames:"0",overrideHTML:null,closeXClickStatus:"default",dataLayerName:"dataLayer"};function s(){this.initialise.apply(this,arguments)}function n(){var e;try{e=localStorage.getItem("beautiful_cookie_banner_open_counter"),e=parseInt(e,10)}catch(e){return console.error(e),0}return("number"!=typeof e||isNaN(e))&&(e=0),e}function c(e,t){var i=document.cookie.match("(^|;)\\s*"+e+"_"+t+"\\s*=\\s*([^;]+)");return i?i.pop():""}function a(e){this.openingTimeout=null,t.removeClass(e,"cc-invisible")}function l(t){t.style.display="none",t.removeEventListener(e.transitionEnd,this.afterTransition),this.afterTransition=null}function r(){var e=this.options,i="top"==e.position||"bottom"==e.position?"banner":"floating";return t.isMobile()&&(i="floating"),i}function h(e){var t=n.call(this);return{href:window.location.href,referrer:document.referrer,cookieName:this.options.cookie.name,mainStatus:e,openCount:t,cookieTypeConsent:[]}}function u(e){if(this.options.statsUrl)try{var t=new XMLHttpRequest;t.withCredentials=!1,t.open("POST",this.options.statsUrl),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify(e))}catch(e){console.error(e)}}function p(o){var s=this.options,n=document.createElement("div");let c=!1;var a;s.container&&1===s.container.nodeType?a=s.container:(a=document.body,c=!0),n.innerHTML=o;var l=n.children[0];return l.style.display="none",t.hasClass(l,"cc-window")&&e.hasTransition&&t.addClass(l,"cc-invisible"),this.onButtonClick=function(o){if("keyup"===o.type&&13!==o.keyCode)return;var s=t.traverseDOMPath(o.target,"cc-btn")||o.target;if(t.hasClass(s,"cc-btn")){var n=s.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),c=n&&n[1]||!1;if("dismiss"===c&&"default"!==this.options.infoClickStatus&&e.status.hasOwnProperty(this.options.infoClickStatus))return this.setStatus(this.options.infoClickStatus),void this.close(!0);c&&(this.setStatus(c),this.close(!0))}t.hasClass(s,"cc-close")&&"default"!==this.options.closeXClickStatus&&e.status.hasOwnProperty(this.options.closeXClickStatus)&&(this.setStatus(this.options.closeXClickStatus),this.close(!0));t.hasClass(s,"cc-close")&&"opt-out"===this.options.type&&"default"===this.options.closeXClickStatus&&(this.setStatus(e.status.allow),this.close(!0));t.hasClass(s,"cc-close")&&"detailed"===this.options.type&&"default"===this.options.closeXClickStatus&&(this.setStatus(e.status.savesettings),this.close(!0));t.hasClass(s,"cc-close")&&"detailedRev"===this.options.type&&"default"===this.options.closeXClickStatus&&(this.setStatus(e.status.savesettings),this.close(!0));t.hasClass(s,"cc-close")&&"detailedRevDeny"===this.options.type&&"default"===this.options.closeXClickStatus&&(this.setStatus(e.status.savesettings),this.close(!0));t.hasClass(s,"cc-close")&&"opt-in"===this.options.type&&"default"===this.options.closeXClickStatus&&(this.setStatus(e.status.deny),this.close(!0));t.hasClass(s,"cc-close")&&"info"===this.options.type&&"default"===this.options.closeXClickStatus&&(this.setStatus(e.status.allow),this.close(!0));(t.hasClass(s,"cc-revoke")||t.hasClass(s,"cc-revoke-button-icon"))&&this.revokeChoice()}.bind(this),l.addEventListener("click",this.onButtonClick),l.addEventListener("keyup",this.onButtonClick),s.autoAttach&&(!a.firstChild||s.forceToAppend&&c?a.appendChild(l):a.insertBefore(l,a.firstChild)),l}function d(e){return"000000"==(e=t.normaliseHex(e))?"#222":t.getLuminance(e)}function v(e,t){for(var i=0,o=e.length;i{{allow}}{{deny}}',this.options.compliance["opt-out"]='
    {{allow}}{{deny}}
    ',this.options.compliance.detailedRev='
    {{allowall}}{{savesettings}}
    ',this.options.compliance.detailedRevDeny='
    {{allowall}}{{savesettings}}{{deny}}
    '),function(){var t=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return t(e.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return t(e.status.allow),!0;var i=Object.keys(e.status),o=this.getStatus(),s=i.indexOf(o)>=0;s&&t(o);return s}.call(this)&&(this.options.enabled=!1),v(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),v(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var s=this.options.window.replace("{{classes}}",function(){var i=this.options;positionStyle=r.call(this);var o=["cc-"+positionStyle,"cc-type-"+i.type,"cc-theme-"+i.theme];i.static&&o.push("cc-static");i.showCloseX&&o.push("cc-addedcloseX");o.push.apply(o,function(){var e=this.options.position.split("-"),t=[];if(1===e.length&&"centered"===e[0])return["cc-top","cc-right","cc-popovercenter"];return e.forEach(function(e){t.push("cc-"+e)}),t}.call(this));(function(i,o){var s=t.hash(JSON.stringify(i)),n="cc-color-override-"+s,c=t.isPlainObject(i);this.customStyleSelector=c?n:null,c&&function(i,o,s,n){if(e.customStyles[i])return void++e.customStyles[i].references;var c={},a=o.popup,l=o.button,r=o.highlight,h=o.switches;a&&(a.text=a.text?a.text:t.getContrast(a.background),a.link=a.link?a.link:a.text,c[s+".cc-window"]=["color: "+a.text,"background-color: "+a.background],c[s+".cc-revoke"]=["color: "+a.text,"background-color: "+a.background],c[s+" .cc-link,"+s+" .cc-link:active,"+s+" .cc-link:visited"]=["color: "+a.link],l&&(l.text=l.text?l.text:t.getContrast(l.background),l.border=l.border?l.border:"transparent",c[s+" .cc-btn"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background],l.padding&&c[s+" .cc-btn"].push("padding: "+l.padding),"transparent"!=l.background&&(c[s+" .cc-btn:hover, "+s+" .cc-btn:focus"]=["background-color: "+(l.hover||d(l.background))]),r?(r.text=r.text?r.text:t.getContrast(r.background),r.border=r.border?r.border:"transparent",c[s+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text,"border-color: "+r.border,"background-color: "+r.background]):!0===n?c[s+" .cc-first-highlight .cc-btn:last-child"]=["color: "+a.text]:c[s+" .cc-highlight .cc-btn:first-child"]=["color: "+a.text]));h&&(c[".cc-slider"]=["background-color: "+h.background+"!important"],c[".cc-slider:before"]=["background-color: "+h.switch+"!important"],c[".cc-switch-label"]=["color: "+h.text],c["input:checked+.cc-slider"]=["background-color: "+h.backgroundChecked+"!important"],c["input:focus+.cc-slider"]=["background-color: "+h.backgroundChecked+"!important"]);var u=document.createElement("style");document.head.appendChild(u),e.customStyles[i]={references:1,element:u.sheet};var p=-1;for(var v in c)c.hasOwnProperty(v)&&u.sheet.insertRule(v+"{"+c[v].join(";")+"}",++p)}(s,i,"."+n,o);return c}).call(this,this.options.palette,this.options.buttonOrderAllowFirst);this.customStyleSelector&&o.push(this.customStyleSelector);return o}.call(this).join(" ")).replace("{{children}}",function(){var e={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message);if(i.cookietypes){var o="",s=this.options.cookie;i.cookietypes.forEach(function(e){var n=e.checked,c=t.getCookie(s.name+"_"+e.cookie_suffix);"deny"===c&&(n=""),"allow"===c&&(n="checked"),o+=i.elements.switch.replace(/\{\{cc\-cookietype\-id\}\}/g,e.cookie_suffix).replace(/\{\{label\}\}/g,e.label).replace(/\{\{checked\}\}/g,n).replace(/\{\{disabled\}\}/g,e.disabled).replace(/\{\{theme\}\}/g,i.theme)}),i.elements.messageswitchlink=i.elements.messageswitchlink.replace(/\{\{allswitches\}\}/g,o).replace("{{allswitchesclasses}}",function(){positionStyle=r.call(this);var e=["cc-"+positionStyle];this.customStyleSelector&&e.push(this.customStyleSelector);return e}.call(this).join(" "))}Object.keys(i.elements).forEach(function(o){e[o]=t.interpolateString(i.elements[o],function(e){var t=i.content[e];return e&&"string"==typeof t&&t.length?t:""})});var n=i.compliance[i.type];n||(n=i.compliance.info);e.compliance=t.interpolateString(n,function(t){return e[t]});var c=function(e){if(!e.showCloseX)return e.layouts[e.layout];if("detailed"===e.type||"detailedRev"===e.type||"detailedRevDeny"===e.type)return"x"!==e.content.close?e.layouts["detailed-closeCustomText"]:e.layouts["detailed-close"];if("x"!==e.content.close)return e.layouts["basic-closeCustomText"];return e.layouts["basic-close"]}(i);c||(c=i.layouts.basic);return t.interpolateString(c,function(t){return e[t]})}.call(this));this.options.makeButtonsEqual&&(s=(s=s.replace("cc-highlight","")).replace("cc-first-highlight",""));var n=this.options.overrideHTML;if("string"==typeof n&&n.length&&(s=n),this.options.static){var c=p.call(this,'
    '+s+"
    ");c.style.display="",this.element=c.firstChild,this.element.style.display="none",t.addClass(this.element,"cc-invisible")}else this.element=p.call(this,s);(function(){var i=this.setStatus.bind(this),o=this.close.bind(this),s=this.options.dismissOnTimeout,n=e.status.dismiss;"detailed"===this.options.type&&(n=e.status.savesettings);"detailedRev"===this.options.type&&(n=e.status.allowall);"detailedRevDeny"===this.options.type&&(n=e.status.allowall);"opt-in"!==this.options.type&&"opt-out"!==this.options.type||(n=e.status.allow);"number"==typeof s&&s>=0&&this.options.enabled&&(this.dismissTimeout=window.setTimeout(function(){i(n),o(!0)},Math.floor(s)));var c=this.options.dismissOnScroll;if("number"==typeof c&&c>=0){var a=function(e){window.pageYOffset>Math.floor(c)&&(i(n),o(!0),window.removeEventListener("scroll",a,{passive:!0}),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=a,window.addEventListener("scroll",a,{passive:!0}))}var l=this.options.dismissOnWindowClick,r=this.options.ignoreClicksFrom;if(l){var h=function(e){for(var s=!1,c=e.path.length,a=r.length,l=0;ls&&(i=!0),i?t.hasClass(o,"cc-active")||t.addClass(o,"cc-active"):t.hasClass(o,"cc-active")&&t.removeClass(o,"cc-active")},200);this.onMouseMove=s,window.addEventListener("mousemove",s)}}}.call(this),this.options.autoOpen&&this.autoOpen(),function(){try{links=document.querySelectorAll('a[id="nsc_bar_link_show_banner"]')}catch(e){links=[]}if(this.shortCodeLink=function(){this.revokeChoice()}.bind(this),links.length>0)for(var e=0;e=0},s.prototype.hasConsented=function(t){var i=this.getStatus();return i==e.status.allow||i==e.status.dismiss||i==e.status.allowall},s.prototype.autoOpen=function(e){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&1==this.options.revokable&&this.toggleRevokeButton(!0)},s.prototype.setStatus=function(i){var o=this.options.cookie,s=t.getCookie(o.name);Object.keys(e.status).indexOf(s);Object.keys(e.status).indexOf(i)>=0?(t.setCookie(o.name,i,o.expiryDays,o.domain,o.path,o.secure),function(e){var i=this.options,o=this.options.cookie,s=h.call(this,e);i.cookietypes&&i.cookietypes.forEach(function(i){try{var n;const c=document.querySelector("input[id=nsc_bar_input_switch"+i.cookie_suffix+"]");"allowall"==e&&(c.disabled||(c.checked=!0)),"deny"==e&&(c.disabled||(c.checked=!1)),n=c.checked?"allow":"deny",t.setCookie(o.name+"_"+i.cookie_suffix,n,o.expiryDays,o.domain,o.path,o.secure),s.cookieTypeConsent.push({name:i.cookie_suffix,status:n})}catch(e){}});(function(){try{localStorage.removeItem("beautiful_cookie_banner_open_counter")}catch(e){console.error(e)}}).call(this),u.call(this,s)}.call(this,i),!0===this.options.activateConsentMode&&function(e,t,i,o,s,n){"dismiss"===e&&(e="allow");const a={},l=Object.keys(s);for(let n=0;n3&&t(n)}),n.send(o)}function n(e){return new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error)}return i.prototype.getNextService=function(){var e;do{e=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex=0,revokable:t.revokable.indexOf(e)>=0,explicitAction:t.explicitAction.indexOf(e)>=0}},i.prototype.applyLaw=function(e,t){var i=this.get(t);return i.hasLaw||(e.enabled=!1,"function"==typeof e.onNoCookieLaw&&e.onNoCookieLaw(t,i)),this.options.regionalLaw&&(i.revokable&&(e.revokable=!0),i.explicitAction&&(e.dismissOnScroll=!1,e.dismissOnTimeout=!1)),e},i}(),e.destroy=function(){var e=document.getElementsByClassName("cc-banner");e[0]&&e[0].remove(),(e=document.getElementsByClassName("cc-revoke"))[0]&&e[0].remove()},e.initialise=function(i,o,s){var n=new e.Law(i.law);"detailed"!=i.type&&"detailedRev"!=i.type&&"detailedRevDeny"!=i.type||(i.layout="detailed"),o||(o=function(){}),s||(s=function(){});var c=Object.keys(e.status),a=t.getCookie("cookieconsent_status");c.indexOf(a)>=0?o(new e.Popup(i)):e.getCountryCode(i,function(t){delete i.law,delete i.location,t.code&&(i=n.applyLaw(i,t.code)),o(new e.Popup(i))},function(t){delete i.law,delete i.location,s(t,new e.Popup(i))})},e.getCountryCode=function(t,i,o){t.law&&t.law.countryCode?i({code:t.law.countryCode}):t.location?new e.Location(t.location).locate(function(e){i(e||{})},o):i({})},e.utils=t,e.hasInitialised=!0,window.cookieconsent=e}}(window.cookieconsent||{});